package com.tizona.entity;

import java.math.BigDecimal;

/**
 * Created by Vitaliy Kim.
 * Date: 28.08.2005
 * Time: 20:00:47
 */
public class SessionTraffic {
    /** identifier field */
    private BigDecimal StId;

    /** persistent field */
    private Long upload = new Long(0);

    /** persistent field */
    private Long download = new Long(0);

    /** persistent field */
    private Long channel;

    /** persistent field */
    private Session session;


    public SessionTraffic(BigDecimal stId, Long upload, Long download, Long channel, Session session) {
        StId = stId;
        this.upload = upload;
        this.download = download;
        this.channel = channel;
        this.session = session;
    }

    public SessionTraffic(Session session, Long channel) {
        this.session = session;
        this.channel = channel;
    }

    public SessionTraffic() {
    }

    public BigDecimal getStId() {
        return StId;
    }

    public void setStId(BigDecimal stId) {
        StId = stId;
    }

    public Long getUpload() {
        return upload;
    }

    public void setUpload(Long upload) {
        this.upload = upload;
    }

    public Long getDownload() {
        return download;
    }

    public void setDownload(Long download) {
        this.download = download;
    }

    public Long getChannel() {
        return channel;
    }

    public void setChannel(Long channel) {
        this.channel = channel;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public void addUpload(Long upload) {
        this.upload += upload;
    }

    public void addDownload(Long download) {
        this.download += download;
    }

}